package edu.biwu.dao.impl02;

import edu.biwu.dao.UserDao;
import org.springframework.stereotype.Repository;

/*org.springframework.context.annotation.ConflictingBeanDefinitionException:
Annotation-specified bean name 'userDaoImpl' for bean class
         [com.myspring.dao.impl02.UserDaoImpl] conflicts with existing,
non-compatible bean definition of same name and class [com.myspring.dao.impl.UserDaoImpl]
原因:Bean的id重复都是自定义的userDaoImpl
解决方案:使两个Bean的id不同即可*/
@Repository("userDaoImpl02") //这里修改后就能正常注入
public class UserDaoImpl implements UserDao{

}
